﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using NMF.Utilities;

namespace NMF.Optimizations
{
    public class MultiModifiedScenario : ScenarioBase
    {
        private IOptimizationScenario baseScenario;
        private List<IOptimizationModification> modifications;

        public MultiModifiedScenario(IOptimizationScenario baseScenario, IEnumerable<IOptimizationModification> modifications)
        {
            this.baseScenario = baseScenario;
            this.modifications = new List<IOptimizationModification>(modifications);
        }

        public override Optimization Optimization
        {
            get { return baseScenario.Optimization; }
        }

        public override IEnumerable<IOptimizationModification> AppliedModifications
        {
            get { return baseScenario.AppliedModifications.Concat(modifications); }
        }
    }
}
